package com.example.flink.model;

/**
 * Created with IntelliJ IDEA.
 * ClassName: WaterModel
 * Package: com.example.flink.model
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-07-20
 * Time: 21:16
 */

//封装的数据对象
public class WaterModel {
    private String id; //水位传感器
    private Long ts; //传感器记录时间戳
    private Integer vc; //水位记录

    //空参构造
    public WaterModel(){}

    public WaterModel(String id, Long ts, Integer vc) {
        this.id = id;
        this.ts = ts;
        this.vc = vc;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getTs() {
        return ts;
    }

    public void setTs(Long ts) {
        this.ts = ts;
    }

    public Integer getVc() {
        return vc;
    }

    public void setVc(Integer vc) {
        this.vc = vc;
    }

    @Override
    public String toString() {
        return "WaterModel{" +
                "id='" + id + '\'' +
                ", ts=" + ts +
                ", vc=" + vc +
                '}';
    }



}
